from MabiCommerce.models import *
from django.contrib import admin

class ItemInline(admin.TabularInline):
    model = Item
    fk_name = 'selling_town'
    extra = 5

class TownAdmin(admin.ModelAdmin):
    inlines = [ItemInline]

admin.site.register(Server)
admin.site.register(IPaddress)
admin.site.register(Town, TownAdmin)
admin.site.register(Item)